import fetch from 'utils/fetch';
/**
 * 账户管理
 */
//获取账户详情
export function getOrgAccountDetail(fOrgId) {
    const data = {
        fOrgId
    };
    return fetch({
        url: 'OrgAccount/getOrgAccountDetail',
        method: 'post',
        data,
    });
}
//保存账户详情
export function saveOrgAccount(sBussinessLicene,sOpenAccount,sProxyLetter,sCardFace,sCardBack,sName,sAccountName,fCardNum,fAccountId,fBankId,fBankProvince,fBankCity,sOpenName,fTelphoneNum,fOrgId) {
    const data = {
        sBussinessLicene,
        sOpenAccount,
        sCardFace,
        sCardBack,
        sProxyLetter,
        sName,
        sAccountName,
        fCardNum,
        fAccountId,
        fBankId,
        fBankProvince,
        fBankCity,
        sOpenName,
        fTelphoneNum,
        fOrgId
    };
    return fetch({
        url: 'OrgAccount/saveOrgAccount',
        method: 'post',
        data,
    });
}
//获取验证码
export function register(sUserPhone, verification, timeStamp) {
    const data = {
        sUserPhone,
        verification,
        timeStamp 
    };
    return fetch({
        url: '/user/register',
        method: 'post',
        data,
    });
}
//校验验证码
export function captchcode(sCaptcha,sUserPhone) {
    const data = {
        sCaptcha,
        sUserPhone
    };
    return fetch({
        url: '/user/captchcode',
        method: 'post',
        data,
    });
}
//获取银行列表
export function listBankCards() {
    const params = {
       
    };
    return fetch({
        url: 'Bank/listBankCards',
        method: 'get',
        params,
    });
}

